package com.telit.uav.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;


/**
 * sys_team
 * @author
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("comm_team")
public class CommTeam implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", dataType = "Long")
    private Long id;

    /**
     * 队伍名称
     */
    @ApiModelProperty(value = "队伍名称")
    @NotBlank(message = "队伍名称不能为空")
    @Size(max = 255,message = "队伍名称最大长度为255个字符")
    private String teamName;

    /**
     * 队伍类型，飞手1
     */
    @ApiModelProperty(value = "队伍类型,飞手1")
    private String teamType;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    /**
     * 逻辑删除(0否,1是,默认0)
     */
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 队长id
     */
    @ApiModelProperty(value = "队长id")
    @NotNull(message = "队长id不能为空")
    private Long leaderId;

    @ApiModelProperty(value = "创建时间", dataType = "LocalDateTime")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间", dataType = "LocalDateTime")
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    private static final long serialVersionUID = 1L;
}